package net.neiquan.applibrary.base;

import com.chad.library.adapter.base.BaseMultiItemQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;

import net.neiquan.applibrary.R;
import net.neiquan.applibrary.bean.HomeMultiItemEntity;

import java.util.List;

public class MyBaseQuickAdapter extends BaseMultiItemQuickAdapter<HomeMultiItemEntity, BaseViewHolder> {

    public MyBaseQuickAdapter(List<HomeMultiItemEntity> data) {
        super(data);
        addItemType(HomeMultiItemEntity.ITEM_0, R.layout.item_quick_adapter);//OK
    }

    @Override
    protected void convert(BaseViewHolder helper, HomeMultiItemEntity item) {
        int type = item.getItemType();
        switch (type) {
            case HomeMultiItemEntity.ITEM_0:
                fillItem(helper, item);
        }
    }

    private void fillItem(BaseViewHolder helper, HomeMultiItemEntity item) {
//        helper.addOnClickListener(R.id.mLocationTv);
//        ImageView mHelpImg = helper.getView(R.id.mHelpImg);
    }
}
